<template>
  <div py-16px border-b-1>
    <a-space py-22px>
      <div w-90px>是否展示</div>
      <div>
        <a-radio-group v-model="props.res.data.display" type="button">
          <a-radio value="block">展示</a-radio>
          <a-radio value="none">隐藏</a-radio>
        </a-radio-group>
      </div>
    </a-space>
  </div>
</template>

<script setup lang="ts">
import { DragRule } from '@/views/operation/decoration/app/models/types';
import { onMounted } from 'vue';
const props = defineProps<{
  res: DragRule,
}>()

onMounted(() => {
  if(!props.res.data.display){
    props.res.data.display = 'block'
  }
})
</script>

<style scoped>
.search {
  width: 100%;
}
</style>
